import type { App } from 'vue'
import permission from './permission'

// Vue 3 插件安装方式
const install = (app: App) => {
  app.directive('permission', permission)
}

// 默认导出插件对象
export default {
  install,
}

// 单独导出指令
export { permission }
